import request from '@/utils/request'

// 获取今日访问量
export function getTodayVisits() {
  return request({
    url: '/assets/visit/today',
    method: 'get'
  })
}

// 记录资产访问
export function recordVisit(assetId) {
  return request({
    url: `/assets/visit/record/${assetId}`,
    method: 'post'
  })
}

// 获取月度访问量趋势
export function getMonthlyVisits() {
  return request({
    url: '/assets/visit/monthly',
    method: 'get'
  })
} 